<?php
	global $_W,$_GPC;
	if($_W['role']){
		$oid = $_GPC['oid'];
		$sql = "SELECT u.uid,u.uName,u.uPhone,u.nickname,o.oid,o.orderid,o.is_pay,o.is_ok,o.details,o.ok_time,o.goods_money,o.pay_money,o.tmoney,o.card_price,o.title,o.addtime,o.pay_time,o.order_type,g.goodsname,g.titlepic,g.price,g.ishot FROM".tablename('mii_ang_order')." o LEFT JOIN ".tablename('mii_ang_user')." u ON o.uid = u.uid  LEFT JOIN ".tablename('mii_ang_goods')." g ON o.goods_id=g.id WHERE o.uniacid = :uniacid AND o.oid = :oid ";
		$o = pdo_fetch($sql,array(':uniacid'=>$_W['uniacid'],':oid'=>$oid));
		include $this->template('web/order/orderdetails');
	}else{
		message('error');
	}
	function dejson($options,$key){
		$data = json_decode($options,true);
		return $data[$key];
	}


?>